package com.ruoyi.job.task;

import com.ruoyi.job.domain.IusAccount;
import com.ruoyi.job.service.IIusAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 记录每天的登陆日志
 *
 * @author ruoyi
 */
@Component("loginLoggerTask")
public class LoginLoggerTask {

    @Autowired
    private IIusAccountService iusAccountService;

    public void ryNoParams()
    {
//        IusAccount iusAccount = new IusAccount();
//        iusAccount.setUserId("08200118");
//        IusAccount iusAccount = iusAccountService.selectIusAccountById("08200118");
        iusAccountService.deleteAll();
        iusAccountService.insertLog();
        System.out.println("日志添加成功");
    }
}
